package org.orz.story.pms.biz.web.provider;

import org.orz.cloud.common.result.ResultDTO;
import org.orz.story.pms.api.PmsAccountClient;
import org.orz.story.pms.api.model.dto.CreatePmsAccountReq;
import org.orz.story.pms.biz.service.PmsAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PmsAccountProvider implements PmsAccountClient {
    @Autowired
    private PmsAccountService pmsAccountService;

    @Override
    public ResultDTO<Boolean> createPmsAccount(CreatePmsAccountReq req) {
        pmsAccountService.createPmsAccount(req);
        return ResultDTO.success();
    }
}
